package src.com.doit.Demo11;

public class Manager extends Employee {
    private double manadmentWage;//管理工资

    public double getManadmentWage() {
        return manadmentWage;
    }

    public void setManadmentWage(double manadmentWage) {
        this.manadmentWage = manadmentWage;
    }

    public Manager(String id, String name, double wage,double manadmentWage) {
        super(id, name, wage);
        this.manadmentWage = manadmentWage;
    }

    @Override
    public void calculateWage() {
        System.out.println(getName()+"的基本工资为:"+getWage()+"元");
        System.out.println(getName()+"的管理工资为:"+manadmentWage+"元");
        System.out.println(getName()+"的总工资为:"+(manadmentWage+getWage())+"元");//基本工资+管理工资
    }
}
